//
//  ZQLoginRegisterView.m
//  BuDeJie
//
//  Created by 仲琦 on 16/4/6.
//  Copyright © 2016年 仲琦. All rights reserved.
//

#import "ZQLoginRegisterView.h"


@interface ZQLoginRegisterView ()
@property (weak, nonatomic) IBOutlet UIButton *loginRegisterBtn;

@end
@implementation ZQLoginRegisterView



//加载xib文件
+(instancetype)loginView
{
    return [[[NSBundle mainBundle] loadNibNamed:@"ZQLoginRegisterView" owner:nil options:nil] firstObject];
}

+ (instancetype)registerView
{
    return [[[NSBundle mainBundle] loadNibNamed:@"ZQLoginRegisterView" owner:nil options:nil] lastObject];
}


-(void)awakeFromNib
{
//    //设置图片拉伸
//    //无用, 利用Assets中的拉伸设置
    UIImage *image = self.loginRegisterBtn.currentBackgroundImage;
    image = [image stretchableImageWithLeftCapWidth:image.size.width *0.5 topCapHeight:image.size.height * 0.5];
    [self.loginRegisterBtn setBackgroundImage:image forState:UIControlStateNormal];
}

@end
